<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./dist/extensions/reorder-rows/bootstrap-table-reorder-rows.css">
    <script src="./dist/jquery-2.2.4.min.js"></script>
    <script src="./dist/jquery.tablednd.js"></script>
    <script src="./dist/bootstrap-table.js"></script>
    <script src="./dist/extensions/reorder-rows/bootstrap-table-reorder-rows.js"></script>
</head>
<body>
<table id="tb_order" data-use-row-attr-func="true" data-reorderable-rows="true">
    <tr>
        <td>1</td>
        <td>A</td>
    </tr>
    <tr>
        <td>2</td>
        <td>A</td>
    </tr>
    <tr>
        <td>3</td>
        <td>A</td>
    </tr>
    <tr>
        <td>4</td>
        <td>4A</td>
    </tr>
    <tr>
        <td>5</td>
        <td>A</td>
    </tr>

</table>
<script>
     $("#ct_question_tab").bootstrapTable({
            height: '560',
            url: ctQuestion.URL.pageQuery,
            method: 'post',
            contentType: "application/x-www-form-urlencoded; charset=UTF-8",
            classes: 'table table-hover table-no-bordered cust-tb',
            cache: false,
            striped: false,
            singleSelect: false,
            paginationLoop: false,//分页循环
            paginationDetailHAlign: "right",// 用于隐藏分页详情信息
            paginationHAlign: "right",
            pagination: true,
            sortOrder: "asc",
            queryParamsType: 'undefined',
            queryParams: function (params) {

                var $ct_question_search = $("#ct_question_search").val();
                var requestParam = {
                    "pageNo": params.pageNumber,
                    "size": params.pageSize,
                    "keyWord": $ct_question_search,
                    "templateId": $("#ct-selector").selectpicker('val')
                };
                return requestParam;
            },
            sidePagination: 'server',
            pageNumber: 1,
            pageSize: 8,
            // paginationPreText:'&lt;&lt;上一页',
            // paginationNextText:'下一页&gt;&gt;',
            showColumns: false,
            showRefresh: false,
            minimumCountColumns: 5,
            uniqueId: 'id',
            showToggle: false,
            responseHandler: function (res) {
                return {
                    "total": res.data.total,//总页数
                    "rows": res.data.list   //数据
                };
            },
            columns: [
                {
                    title: '主键',
                    field: 'id',
                    visible: false,
                },
                {
                    title: '模板ID',
                    field: 'templateId',
                    visible: false,
                },
                {
                    title: '标题',
                    field: 'name',
                    width: '20%',
                    align: 'center'
                }
            ]
        });
</script>
</body>
</html>